package icu.lookyousmileface.functionfour;

import java.util.function.Supplier;

/**
 * @author starrysky
 * @title: SupplierUse
 * @projectName Juc_Pro
 * @description: Supplier 生产者接口
 * @date 2021/1/2911:53 下午
 */
public class SupplierUse {
    public static void main(String[] args) {
        Supplier<Integer> supplier = ()->{return 1024;};
        System.out.println("supplier生产："+supplier.get());
    }
}
